<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>展示啊</title>
</head>
<body>
<form method="get">
    <h2>国内各省份疫情数据</h2>
    <h3>{{ msg }}</h3>
    {% if all_data %}
        <table border="2" cellspacing="0">
            <tr>
                <td>地区</td>
                <td>现存确诊</td>
                <td>累计确诊</td>
                <td>死亡</td>
                <td>治愈</td>
                <td>详情</td>
            </tr>
            {% for name,xcqz,ljqz,zy,sw in all_data %}
                <tr>
                    <td>{{ name }}</td>
                    <td>{{ xcqz }}</td>
                    <td>{{ ljqz }}</td>
                    <td>{{ zy }}</td>
                    <td>{{ sw }}</td>
                    <td><input type="button" value="查看详情" onclick="javascript:window.location.href='/xgyq/showmore?tr={{ forloop.counter0 }}'"></td>
                </tr>
            {% endfor %}
        </table>
    {% endif %}
</form>
</body>
</html>